package com.example.model;

/**
 * Author:HOU
 * date:2022/11/15  15:05
 * 案例:
 **/
public class IdCollection {
    private Integer id;
    private String username;
    private String cname;//商品名称
    private String cid;//商品id
    private Integer cstate;//商品状态   0表示发新  1表示已购买 2表示寄卖
    private double price;//没有寄卖默认为发行价

    public IdCollection() {
    }

    public IdCollection(Integer id, String username, String cname, String cid, Integer cstate, double price) {
        this.id = id;
        this.username = username;
        this.cname = cname;
        this.cid = cid;
        this.cstate = cstate;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public Integer getCstate() {
        return cstate;
    }

    public void setCstate(Integer cstate) {
        this.cstate = cstate;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "IdCollection{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", cname='" + cname + '\'' +
                ", cid='" + cid + '\'' +
                ", cstate=" + cstate +
                ", price=" + price +
                '}';
    }
}
